package com.zhss.eshop.common.constant;

/**
 * 克隆方向
 * @author suyuan
 *
 */
public class CloneDirection {

	/**
	 * 正向克隆：从VO->DTO，DTO->DO
	 * <p>
	 * AccountDTO targetAccount = accountVO.clone(AccountDTO.class, CloneDirection.FORWARD);
	 */
	public static final Integer FORWARD = 1;
	/**
	 * 反向克隆：从DO->DTO，DTO->VO
	 * <p>
	 * CategoryVO resultCategory = categoryDTO.clone(CategoryVO.class, CloneDirection.OPPOSITE);
	 */
	public static final Integer OPPOSITE = 2;

	private CloneDirection() {

	}

}
